import Vue from 'vue'
import DialogPreview from './preivew.vue'
export const openPreview = async function (options) {
    const DialogConstructor = Vue.extend(DialogPreview)
    const instance = new DialogConstructor()
    await instance.setAttrs(options)
    instance.$mount()
    document.body.appendChild(instance.$el)
}

